package data.platform.merge.model;

public enum MergeType {

    NON(0), AVG(1), SUM(2), MIN(3), MAX(4);

    private int type;

    MergeType(int type) {
        this.type = type;
    }

    public static MergeType getMergeType(int type) {
        switch (type) {
            case 1:
                return AVG;
            case 2:
                return SUM;
            case 3:
                return MIN;
            case 4:
                return MAX;
            default:
                return NON;
        }
    }
}
